babl: simplify logic in babl_epsilon_for_zero
authorØyvind Kolås <pippin@gimp.org>
Fri, 16 Aug 2019 21:45:18 +0000 (23:45 +0200)
committerØyvind Kolås <pippin@gimp.org>
Fri, 16 Aug 2019 21:45:21 +0000 (23:45 +0200)
commit1124c691f445defea27c770160a4df08e3fe3f9c
tree1d135f8a17ed8eb0147900ad6741b58c11e278e7
parent868a0771acfcc58950d7cd294a70344b27834a71
babl: simplify logic in babl_epsilon_for_zero

We do not need to treate positive/negative avoided infinities differently,
the result is the same as long as we are consistent, and only using the
positive epsilon value leads to slightly simpler per-pixel conversion code
in both directions.
babl/base/util.h
docs/SymmetricAlpha-static.html